﻿using System.Xml.Serialization;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace PhoenixCrabV6.Engine.Images
{
    [XmlInclude (typeof (MultiImage))]
    public interface IMultiImage : IImage
    {
        /// <summary>
        /// Retrieve a specific image in the MultiImage
        /// </summary>
        /// <param name="i">index of the image to retrieve</param>
        /// <returns>Image as a Texture2D</returns>
        [XmlIgnore] Texture2D this[int i] { get; }

        /*/// <summary>
        /// Adjust the positioning of the images by this much.
        /// Useful in setting the position of the multiimage 
        /// </summary>
        [XmlElement("Position")]
        Vector2 PositionDisplace { get; set; }*/

        /// <summary>
        /// When Draw method of the MultiImage called, this is the index of the image that gets displayed
        /// </summary>
        int DrawAtIndex { get; set; }


    }
}